package com.example.demo.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.example.demo.vo.DateVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Shanks
 * @date 2020-10-27
 */
@Slf4j
@Api(value = "DateController", tags = {"日期"})
@RestController
public class DateController {

    @PostMapping("/date/1")
    @ApiOperation(value = "日期", notes = "日期")
    public R<DateVO> date(@RequestBody DateVO dateVo) {
        log.info("DateVO: {}", dateVo);
        return R.ok(dateVo);
    }
}